<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PHPLOGGER TEST</title>
<? 
require_once("..\config.php");
require_once("PHPLogger.php");
?>
</head>

<body>
	<?	  	
	 $loggeo = new PHPLogger(LOGGER_PATH, LOGGER_LEVEL);
	 class X {	  					
		public function alarma(){
			global $loggeo;
			echo($loggeo->getLevel());
		}
	  }
	  //echo PHPLogger::getPath();
	  
	  X::alarma();
	  /*
	   $log = new PHPLogger(dirname(__FILE__),5);
	   $log->addLine('INFO','Linea de pruebas');
	   $log->addLine('WARNING','Linea de pruebas');
	   $log->addLine('FATAL','Linea de pruebas');
	   $log->addLine('ERROR','Linea de pruebas');
	   $log->addLine('DEBUG','Linea de pruebas');
	   $log->addLine('caka','Linea de pruebas');*/
	 ?>
	PHPLogger Active!
</body>
</html>
